gdkwindow: configure native windows in move_native_children()
authorOlivier Fourdan <ofourdan@redhat.com>
Thu, 6 Oct 2016 14:49:39 +0000 (16:49 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Thu, 13 Oct 2016 06:53:59 +0000 (08:53 +0200)
commit9e2b1ad39e86b2352116f49214cf195cb3e0e970
tree0029b5fd9a5be6a716f2226c86f2c3a54a45540d
parentb65fbbf7390caacd0351e5f29570d487d4e95a10
gdkwindow: configure native windows in move_native_children()

ClutterEmbed on Wayland uses a subsurface and relocates it on configure
events, but when placed within a scrolled window, no configure event is
emitted and the ClutterEmbed subsurface remains static.

Emit a configure event for native windows in GdkWindow's internal
move_native_children() so that custom widgets relying on configure
events such as ClutterEmbed can relocate their stuff.

Similarly, when switching to/from normal/maximized/fullscreen states
which change the shadows' size and possibly shows/hides a header bar,
we need to emit a configure event even if the abs_x/abs_y haven't
changed to make sure the subsurface is size appropriately.

https://bugzilla.gnome.org/show_bug.cgi?id=771320
https://bugzilla.gnome.org/show_bug.cgi?id=767713
gdk/gdkwindow.c